#include <iostream>
using namespace std;

int main() {
    void *p;
    int i = 10;
    char c = 'g';
    p = &i;
    cout << p << endl;
    cout << *(int *)p << endl; // 把p转成int指针，再解引用
    p = &c;
    cout << *(char *)p << endl;


    return 0;
}